FROM openshift/golang-builder@sha256:4820580c3368f320581eb9e32cf97aeec179a86c5749753a14ed76410a293d83 AS builder
ENV __doozer=update BUILD_RELEASE=202202160023.p0.ga0e506c.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.ga0e506c.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=a0e506c OS_GIT_VERSION=4.10.0-202202160023.p0.ga0e506c.assembly.stream-a0e506c SOURCE_DATE_EPOCH=1644499675 SOURCE_GIT_COMMIT=a0e506ca7d323493afd1ff32f8366e06fd1f1c59 SOURCE_GIT_TAG=a0e506ca SOURCE_GIT_URL=https://github.com/openshift/cluster-network-operator 
WORKDIR /go/src/github.com/openshift/cluster-network-operator
COPY . .
RUN hack/build-go.sh

FROM openshift/ose-base:v4.10.0.20220216.010142
ENV __doozer=update BUILD_RELEASE=202202160023.p0.ga0e506c.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.ga0e506c.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=a0e506c OS_GIT_VERSION=4.10.0-202202160023.p0.ga0e506c.assembly.stream-a0e506c SOURCE_DATE_EPOCH=1644499675 SOURCE_GIT_COMMIT=a0e506ca7d323493afd1ff32f8366e06fd1f1c59 SOURCE_GIT_TAG=a0e506ca SOURCE_GIT_URL=https://github.com/openshift/cluster-network-operator 
COPY --from=builder  /go/src/github.com/openshift/cluster-network-operator/cluster-network-operator /usr/bin/
COPY --from=builder  /go/src/github.com/openshift/cluster-network-operator/cluster-network-check-endpoints /usr/bin/
COPY --from=builder  /go/src/github.com/openshift/cluster-network-operator/cluster-network-check-target /usr/bin/
COPY manifests /manifests
COPY bindata /bindata
ENV OPERATOR_NAME=cluster-network-operator
CMD ["/usr/bin/cluster-network-operator"]

LABEL \
        io.openshift.release.operator="true" \
        name="openshift/ose-cluster-network-operator" \
        com.redhat.component="cluster-network-operator-container" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        io.openshift.maintainer.component="Networking" \
        io.openshift.maintainer.subcomponent="openshift-sdn" \
        release="202202160023.p0.ga0e506c.assembly.stream" \
        io.openshift.build.commit.id="a0e506ca7d323493afd1ff32f8366e06fd1f1c59" \
        io.openshift.build.source-location="https://github.com/openshift/cluster-network-operator" \
        io.openshift.build.commit.url="https://github.com/openshift/cluster-network-operator/commit/a0e506ca7d323493afd1ff32f8366e06fd1f1c59" \
        version="v4.10.0"

